\section{model::interpreter Class Reference}
\label{classmodel_1_1interpreter}\index{model::interpreter@{model::interpreter}}
This class represents an interpreter.  


{\tt \#include $<$interpreter.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{interpreter} ()\label{classmodel_1_1interpreter_28e8482f02b03984b517f445cd9a6aaf}

\item 
\bf{interpreter} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em interpreter creates an interpreter from an dom-node \item\end{CompactList}\item 
\bf{interpreter} (const string \&name, const list$<$ \bf{model::album} $>$ a)
\begin{CompactList}\small\item\em interpreter creates an interpreter \item\end{CompactList}\item 
\bf{$\sim$interpreter} ()\label{classmodel_1_1interpreter_bcf5afd479d5e3f91a535c27701b2ea3}

\item 
void \bf{set\_\-name} (const string \&n)\label{classmodel_1_1interpreter_cc34a695396fd3684a690b0b6973e2cb}

\begin{CompactList}\small\item\em set\_\-name sets the name of the interpreter \item\end{CompactList}\item 
const string \& \bf{get\_\-name} () const \label{classmodel_1_1interpreter_db8db4639df57b03ea72f19d6c13854b}

\begin{CompactList}\small\item\em get\_\-name returns the name of the interpreter \item\end{CompactList}\item 
void \bf{parse} (const \bf{model::dom} \&node)
\begin{CompactList}\small\item\em parse parses the node to the internal interpreter structure \item\end{CompactList}\item 
void \bf{set\_\-albums} (const list$<$ \bf{model::album} $>$ a)\label{classmodel_1_1interpreter_7c930d127e66f9f079a5412df84b90fb}

\begin{CompactList}\small\item\em set\_\-albums sets the albums of the interpr. \item\end{CompactList}\item 
const list$<$ \bf{model::album} $>$ \& \bf{get\_\-albums} () const \label{classmodel_1_1interpreter_2c51b0b38d937f60d48f7102ed8f231e}

\begin{CompactList}\small\item\em get\_\-albums returns the albums of the interpr. \item\end{CompactList}\item 
list$<$ \bf{model::album} $>$ \& \bf{get\_\-albums} ()\label{classmodel_1_1interpreter_62ead774d9f3a78af4be03b9824485b2}

\begin{CompactList}\small\item\em get\_\-albums returns the albums of the interpr. \item\end{CompactList}\item 
void \bf{print} () const \label{classmodel_1_1interpreter_6a3fea734e16ab3bca1ac59f49ffc909}

\begin{CompactList}\small\item\em print prints the interpreter. For debug purposes only. \item\end{CompactList}\item 
string \bf{to\_\-xml} () const \label{classmodel_1_1interpreter_e993fcb0cc2f5feb4a165c1aeea7c649}

\begin{CompactList}\small\item\em to\_\-xml prints the xml-structure of the interpreter \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents an interpreter. 



Definition at line 41 of file interpreter.h.

\subsection{Constructor \& Destructor Documentation}
\index{model::interpreter@{model::interpreter}!interpreter@{interpreter}}
\index{interpreter@{interpreter}!model::interpreter@{model::interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::interpreter::interpreter (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1interpreter_f349bf39685307225301883a8e0710bf}


interpreter creates an interpreter from an dom-node 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node from which the interpreter should be created \end{description}
\end{Desc}


Definition at line 3 of file interpreter.cpp.

\begin{Code}\begin{verbatim}4 {
5         parse(node);
6 }
\end{verbatim}\end{Code}


\index{model::interpreter@{model::interpreter}!interpreter@{interpreter}}
\index{interpreter@{interpreter}!model::interpreter@{model::interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}model::interpreter::interpreter (const string \& {\em name}, const list$<$ \bf{model::album} $>$ {\em a})\hspace{0.3cm}{\tt  [inline]}}\label{classmodel_1_1interpreter_b888157665fa2505918f8f27790c04f0}


interpreter creates an interpreter 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em name}]is the name of the interpreter \item[{\em a}]is a list of albums \end{description}
\end{Desc}


Definition at line 57 of file interpreter.h.

\begin{Code}\begin{verbatim}58                 : _name(name), _albums(a) {}
\end{verbatim}\end{Code}




\subsection{Member Function Documentation}
\index{model::interpreter@{model::interpreter}!parse@{parse}}
\index{parse@{parse}!model::interpreter@{model::interpreter}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void model::interpreter::parse (const \bf{model::dom} \& {\em node})}\label{classmodel_1_1interpreter_b58aa09fb354e201f6fb795a34a16b8a}


parse parses the node to the internal interpreter structure 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em node}]is the node from which the interpreter should be created. \end{description}
\end{Desc}


Definition at line 8 of file interpreter.cpp.

\begin{Code}\begin{verbatim}9 {
10         _name = node.find_attrib("name");
11         boost::shared_ptr<model::dom> ptr(
12                 node.find("album"));
13         while(*ptr) {
14                 _albums.push_back(model::album(*ptr));
15                 ptr = ptr->next_tag();
16         }
17 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
model/interpreter.h\item 
model/interpreter.cpp\end{CompactItemize}
